<?php
define('COLUMN_CONFIG','COL_CONF');
define('NEXT_BUTTON','NXT_BTN');
define('EXTRACTIONS','EXTRS');
define('TYPE_REGULAR_EXPRESSION','TREG_EXP');
define('ROW_OFFSET','ROFF');


define('FORUM_ITALIA_MAC','Italia Mac');
define('FORUM_MAC_RUMORS','Mac Rumors');
define('FORUM_IP_MART','iP-Mart');


/**
@todo. Read these configuration from XML/Database
*/
$FORUMS_CONFIG = array(
    FORUM_ITALIA_MAC => array(
        COLUMN_CONFIG => array(
            1 => 'startdate',
            3 => 'views|replies',
            4 => 'lastanswer'
        ),
        NEXT_BUTTON => '//html//body//div//div[4]//div//div//ul//li//a',
        ROW_OFFSET => -2
    ),
    
    FORUM_MAC_RUMORS => array(
        COLUMN_CONFIG => array(
            3 => 'replies',
            4 => 'views',
            2 => 'lastanswer'
        ),
        NEXT_BUTTON => '//html//body//div//div[4]//div//div//form//table//tbody//tr//td[2]//div//table//tbody//tr//td[7]//a',
        ROW_OFFSET => -11
    ),
    
    FORUM_IP_MART => array(
        COLUMN_CONFIG => array(
            1 => 'startdate',
            2 => 'views|replies',
            3 => 'lastanswer'
        ),
        NEXT_BUTTON => '//html//body//div[2]//div[3]//div//form//span[13]//a',
        ROW_OFFSET => 0
    )   
);
?>